<script type="text/javascript">
  var str = "javascript Tutorial";
  document.write(str.replace(/javascript/i, "JavaScript"));
</script>